package dao;

import java.sql.Statement;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedProperty;

import com.myLogger.LoggerManager;

public class Dao {
	@ManagedProperty(value="#{log.logger}")
	protected LoggerManager log;

	@ManagedProperty(value="#{connectionManager}")
	protected ConnectionManager connManager;
	
	protected Statement st;
	
	@PostConstruct
	public void init() {
		st = connManager.getStmnt();
	}

	public void setLog(LoggerManager log) {
		this.log = log;
	}

	public void setConnManager(ConnectionManager connManager) {
		this.connManager = connManager;
	}


}
